package com.mxdx.edu.enums;

import java.util.HashMap;
import java.util.Map;

public enum WorkingLifeEnums {
	
	ONE("1", "1年以上"),
	TWO("2", "2年以上"),
	THREE("3", "3年以上"),
	FIVE("5", "5年以上"),
	EIGHT("8", "8年以上"),
	TEN("10", "10年以上"),
	TWENTY("20", "20年以上"),
	;
	private String type;
	private String desc;
	
	private WorkingLifeEnums(String type, String desc) {
		this.type = type;
		this.desc = desc;
	}
	
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getDesc() {
		return desc;
	}
	public void setDesc(String desc) {
		this.desc = desc;
	}
	
	public static Map<String , WorkingLifeEnums> getMap(){
		return WORKING_LIFE_ENUMS_MAP;
	}
	
	private static Map<String , WorkingLifeEnums> WORKING_LIFE_ENUMS_MAP = new HashMap<>();
	static {
		WORKING_LIFE_ENUMS_MAP.put("1", ONE);
		WORKING_LIFE_ENUMS_MAP.put("2", TWO);
		WORKING_LIFE_ENUMS_MAP.put("3", THREE);
		WORKING_LIFE_ENUMS_MAP.put("5", FIVE);
		WORKING_LIFE_ENUMS_MAP.put("8", EIGHT);
		WORKING_LIFE_ENUMS_MAP.put("10", TEN);
		WORKING_LIFE_ENUMS_MAP.put("20", TWENTY);
	}
	
	
}
